const Layout = () => import("@/components/layouts/index.vue");

const routes = [
  {
    path: "/",
    name: "Home",
    component: Layout,
    redirect: "/index",
    meta: {
      icon: "homeFilled",
      title: "首页",
      rank: 0
    },
    children: [
      {
        path: "/index",
        name: "Welcome",
        component: () => import("@/views/home/index.vue"),
        meta: {
          title: "首页",
          showLink: true
        }
      },
      {
        path: "/flowanle/processDefine",
        name: "ProcessDefine",
        component: () => import("@/views/flowable/flowableDefine/index.vue"),
        meta: {
          title: "流程定义",
          showLink: true
        }
      },
      {
        path: "/lowCode/businessEntity",
        name: "BusinessEntity",
        component: () => import("@/views/lowCode/businessEntity/index.vue"),
        meta: {
          title: "低代码模块",
          showLink: true
        }
      }
    ]
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录页",
      showLink: true
    }
  },
  {
    path: "/flowanle/processDesign",
    name: "ProcessDesign",
    component: () =>
      import("@/views/flowable/flowableDefine/FlowableDesign.vue"),
    meta: {
      title: "流程设计",
      showLink: true
    }
  }
];
export default routes as any;
